package com.hf.constant

import org.apache.commons.lang.StringUtils

import com.hf.order.OrderPeriodType

class OrderLunchConst {

	static final String SERVER_HOME_FORMAT="http://{0}:8090/orderLunch"
	static final String SERVER_PORT = "8090"
	static final String SERVER_DOMAIN1 = "zhu13127"
	static final String SERVER_DOMAIN2 = SERVER_DOMAIN1 + ".prod.quest.corp"
	static final String SERVER_IP = "10.30.147.9"

	static final String BANK_ACCOUNT_INFO= "郝方 (1)支付宝 手机:13727083237 (2)平安账号: 6225 3800 9329 5758 "

	static final String ADMIN_NAME = "fang.hao"

	static final String ADMIN_NAMES = "kyle.wang,karci.xie" + ',' + ADMIN_NAME
	static final String ADMIN_EMAIL = "fang.hao@software.dell.com"
	static final String ADMIN_PW = "hf" // super pass

	static String NOTE_BILL = ""

	static final BigDecimal ORDER_MONEY = 8.5
	static final FETCH_ORDER_NUMBER_PER_PERSON = 8
	static final BigDecimal FETCH_RATIO_AJUST_ZERO = 3
	static final String FROM_ORDER_LUNCH = "(From Order Lunch)"
	static final int FETCH_EMAIL_CLOCK = 11
	static final String TEMP_GROUP = "Temp Group"

	static boolean IS_TEST = false
	static final OrderPeriodType curOrderPeriodType = OrderPeriodType.month

	static boolean isAdmin(String name) {
		String[] adminNames = StringUtils.split(ADMIN_NAMES, ',')
		for (String adminName : adminNames) {
			if (StringUtils.equalsIgnoreCase(name, adminName)) {
				return true
			}
		}
		return false
	}
}
